import { _decorator, Component, Node, director, Sprite } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('worldDynamics')
export class worldDynamics extends Component {
    private close:Node;

    start() {
        this.close = this.node.getChildByName('close')


        this.close.on(Node.EventType.TOUCH_END, this.onClose, this)


    }

    onClose(){
        console.log('mian......')
        director.loadScene("mian");
    }

    update(deltaTime: number) {
        
    }
}


